﻿using AutoMapper;
using HuiLian.Model.Platform;
using HuiLian.Service.Platform.PipeHealth.Input;
using HuiLian.Service.Platform.PipeTeZhengData.Output;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuiLian.Service.Platform.PipeTeZhengData
{
    /// <summary>
    /// 映射配置
    /// </summary>
    public class MapConfig : Profile
    {
        public MapConfig()
        {
            CreateMap<RepairledgetEntity, RepairledgetListOutput>()
                .ForMember(d => d.破损时间, m => m.MapFrom(s => s.接报时间));
            CreateMap<PipeEntity, PipeTeZhengDataListOutput>()
                .ForMember(d => d.管道类型, m => m.MapFrom(s => s.类型));
        }
    }
}
